package com.swagger2.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/29  15:16
 * 描述:
 */
@Data
@ApiModel(value = "MyUser12333",description = "MYUser的描述")
public class MyUser {

    @ApiModelProperty(value = "ModelVALUE",name = "userName",example = "张三年")
    private String userName;

    @ApiModelProperty(value = "ModelVALUE",name = "date",example = "2021-06-09 12:56:34")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    @ApiModelProperty(value = "ModelVALUE",name = "listUser",example = "[{\"userName\":\"李四\",\"date\":\"2021-06-09 12:56:34\"}]")
    private List<MyUser> listUser;

}
